package com.stylefeng.guns.core.util;

import com.stylefeng.guns.core.support.HttpKit;

public class WebUtil {

    public static boolean judgeIsWx() {
        String ua = HttpKit.getRequest().getHeader("user-agent")
                .toLowerCase();
        if (ua.indexOf("micromessenger") > 0) {// 是微信浏览器
             return true;
        }
        return false;
    }

}
